platform :ios, '10.0'

target 'SHWAPay' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!
  pod 'SHQQ', path:'../'
  pod 'TencentOpenAPI355', path:'../../TencentOpenAPI355'
  # Pods for SHWAPay
#  pod 'TencentOpenAPI_iOS', '~> 3.5.5'

end
#
post_install do |installer|
  # pod头文件引用问题设置
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
#      if config.name == 'Debug'
        config.build_settings['USER_HEADER_SEARCH_PATHS'] = '$(PODS_ROOT)/**'
#      end
    end
  end

  # 修改工程的头文件引用问题
  app_project = Xcodeproj::Project.open(Dir.glob('*.xcodeproj')[0])
  # 主工程二进制重排设置
  app_project.native_targets.each do |target|
    if target.name == 'SHWAPay'
      target.build_configurations.each do |config|
#        if config.name == 'Debug'
          config.build_settings['USER_HEADER_SEARCH_PATHS'] = '$(PODS_ROOT)/**'
#        end
      end
    end
  end

  app_project.save

end
